package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;


/**
 * http://localhost:8000/
 * http://localhost:9000/hellos?name=dddd
 * http://localhost:9001/helloc/neo
 * --客户端启动
 * http://localhost:9001/hystrix
 * http://localhost:9001/hystrix.stream
 *
 *
 * #http://localhost:8001/turbine.stream
 #http://localhost:9001/hystrix.stream
 #http://localhost:9002/hystrix.stream
 #http://localhost:9001/helloc/neo
 #http://localhost:9002/helloc/neo
 */

@SpringBootApplication
@EnableDiscoveryClient  //启用服务注册
@EnableFeignClients //远程调用
@EnableCircuitBreaker //熔断器
public class ConsumerApplicationNode2 {

	public static void main(String[] args) {
		SpringApplication.run(ConsumerApplicationNode2.class, args);
	}



}
